using System;
using System.Collections.Generic;
using System.Text;
using DevExpress.Xpo;
namespace TaiLieu
{
    public class TracNghiem_MembersDB : Base
    {
      
        public static XPCollection<TracNghiem_Members> GetObjectBy_Id_Level_Mem(int idmember)
        {
            XPCollection<TracNghiem_Members> xpTracNghiem_Members = new XPCollection<TracNghiem_Members>(KetNoiCSDL.session);
            string filter = "";
            filter = "Member.Id=" + idmember;
            xpTracNghiem_Members.Filter = DevExpress.Data.Filtering.CriteriaOperator.Parse(filter);
            return xpTracNghiem_Members;

        }
        //// hoa1 
        //public static ICollection<hoa1> Hoa1_get_20(int startNumber)
        //{
        //    try
        //    {
        //        return KetNoiCSDL.session.GetObjectsFromQuery<hoa1>("select top 20 * from hoa1 where Id>=" + startNumber + " order by 'Id' asc");
        //    }
        //    catch
        //    { return KetNoiCSDL.session.GetObjectsFromQuery<hoa1>("select * from hoa1 where Id>=" + startNumber + " order by 'Id' asc"); }
        //}
        
    }
}
